#ifndef CJSONOBJECT_H
#define CJSONOBJECT_H

#include "cjsonvalue.h"
#include "cjsonpare.h"
#include <vector>

class CJsonObject : public CJsonValue
{
private:
    std::map <CJsonName*, CJsonValue*> pares;
public:
    LIB_PRE CJsonObject();
    LIB_PRE ~CJsonObject();
    LIB_PRE jstring ToString();
    LIB_PRE void AddPare(const jchar* name, bool value);
	LIB_PRE void AddPare(const jchar* name, int  value);
	LIB_PRE void AddPare(const jchar* name, bool value);
    LIB_PRE CJsonValue * operator [] (jstring & name) const;
    LIB_PRE bool Empty() const;
    LIB_PRE CJsonPare * Pop();
    LIB_PRE void Clear();
};

#endif // CJSONOBJECT_H
